//
//  ViewController4.m
//  ceShi12
//
//  Created by RT on 2025/6/25.
//

#import "ViewController4.h"
#import "ViewController5.h"

@interface ViewController4 ()

@end

@implementation ViewController4

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIFont *font2 = [UIFont fontWithName:@"Helvetica-Bold" size:13];//加粗
    UIFont *font1 = [UIFont systemFontOfSize:13];//加粗
    //    self.menuView = [[WMZPageMenuView alloc]initWithFrame:CGRectMake(0, PageVCNavBarHeight, PageVCWidth, 55)];
    __weak __typeof(self)weakSelf = self;
 
    WMZPageParam *param = [[WMZPageParam alloc]init];
    
    NSArray *array2 = @[
        @"利润表",
        @"资产负债表",
        @"现金流量表",];
    
    param
        .wTitleArrSet(array2)
        .wTopSuspensionSet(YES)
        .wMenuHeightSet(40)
        .wMenuCellMarginSet(14)
    //        .wMenuDefaultIndexSet(1)
        .wMenuCellMarginSet(29)
        .wMenuIndicatorHeightSet(2)
        .wMenuAnimalSet(PageTitleMenuAiQY)
        .wMenuIndicatorColorSet(UIColor.redColor)
        .wMenuFixWidthSet(60)
        .wMenuTitleOffsetSet(0)

    //        .wMenuTitleOffsetSet(1)
    //        .wHideRedCircleSet(YES)
   
        .wMenuTitleColorSet(UIColor.orangeColor)
    //菜单标题选中的颜色
        .wMenuTitleSelectColorSet(UIColor.blackColor)
        .wMenuTitleUIFontSet(font1)
        .wMenuPositionSet(PageMenuPositionLeft)
        .wMenuTitleSelectUIFontSet(font2)
        .wMenuWidthSet(self.view.frame.size.width)
        .wGlobalTriggerOffsetSet(20)
        .wMenuInsetsSet(UIEdgeInsetsMake(0, 9, 0, 9))
       .wCustomNaviBarY = ^CGFloat(CGFloat nowY) {
            
            return 44;
        };
    
    //    param.wCustomDataViewHeight = ^CGFloat(CGFloat nowY) {
    //        return ZKL_HEIGHT-nav_Height-tabBar_Height-37);
    //    };
    
    //    param.wCustomTabbarY = ^CGFloat(CGFloat nowY) {
    //
    //        return tabBar_Height;
    //    }
    param.wMenuHeadViewSet(^UIView *{
        
        UIView* back = [UIView new];
        //            weakSelf.back.frame = CGRectMake(0, 0, PageVCWidth, ZKLWidth(715));
        back.frame = CGRectMake(0, 0, PageVCWidth, 517);
        //726
        back.backgroundColor = UIColor.whiteColor;
    
        
        return back;
        
    });

    param.wViewController = ^UIViewController * _Nullable(NSInteger index) {

        ViewController5 *VC = ViewController5.new;
        VC.page = index;

        return VC;
    };

//    param.wMenuDefaultIndexSet(_page);

    self.param = param;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
